﻿using SIG.Infrastructure.Helper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIG.DAL.Dapper.Model
{


    /// <summary>
    /// A class which represents the Users table.
    /// </summary>
	[Table("Users")]
    public partial class User
    {
       
        [Key]
        public virtual Guid Id { get; set; }
        public virtual string UserName { get; set; }
        public virtual string Email { get; set; }
        public virtual string PasswordHash { get; set; }
        public virtual string SecurityStamp { get; set; }
        public virtual string RealName { get; set; }
        public virtual string PhotoUrl { get; set; }
        public virtual bool IsActive { get; set; }
        public virtual DateTime CreateDate { get; set; }
        public virtual DateTime? LastActivityDate { get; set; }
        public virtual DateTime? Birthday { get; set; }
        public virtual Gender? Gender { get; set; }
        public virtual string QQ { get; set; }
        public virtual string Mobile { get; set; }
        public virtual IEnumerable<UserRole> UserRoles { get; set; }
    }

    public enum Gender : short
    {
        [Display(Name = "未知")]
        Unknown = 0,
        [Display(Name = "男")]
        Male = 1,
        [Display(Name = "女")]
        Female = 2

    }
}
